package com.rmi;

/**
 * @author Dmitry
 */
public class RmiHeader {
    static class RmiException {
        private String className;
        private String message;

        public String getClassName() {
            return className;
        }

        public void setClassName(String className) {
            this.className = className;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    };

    static class RmiMethod {
        private String className;
        private String methodName;
        private RmiParameter[] parameters;

        public String getClassName() {
            return className;
        }

        public void setClassName(String className) {
            this.className = className;
        }

        public String getMethodName() {
            return methodName;
        }

        public void setMethodName(String methodName) {
            this.methodName = methodName;
        }

        public RmiParameter[] getParameters() {
            return parameters;
        }

        public void setParameters(RmiParameter[] parameters) {
            this.parameters = parameters;
        }
    };

    static class RmiParameter {
        private final String type;
        private final int offset;

        public RmiParameter(String type, int offset) {
            this.type = type;
            this.offset = offset;
        }

        public String getType() {
            return type;
        }

        public int getOffset() {
            return offset;
        }

    };

    private RmiMethod rmiMethod;

    RmiMethod getRmiMethod() {
        return rmiMethod;
    }

    void setRmiMethod(RmiMethod rmiMethod) {
        this.rmiMethod = rmiMethod;
    }

}
